import request from '@/router/axios';

// 分页查询
export const getTableList = (params) => {
  return request({
    url: '/api/mes-product/stat-storage-age-wip/page',
    method: 'get',
    params
  });
};

//查询详情
export const getDetailList = (params) => {
  return request({
    url: '/api/mes-product/stat-storage-age-wip/detail',
    method: 'get',
    params
  });
};

// //趋势查询
// export const getTrendTableList = (params) => {
//   return request({
//     url: '/api/mes-abacus/wip/remain-time-distribution-month-summary-list',
//     method: 'get',
//     params
//   });
// };

//图表数据
export const getChartData = (params) => {
  return request({
    url: '/api/mes-product/stat-storage-age-wip/month-list',
    method: 'get',
    params
  });
};
// //图表趋势数据
// export const getTrendChartData = (params) => {
//   return request({
//     url: '/api/mes-abacus/wip/remain-time-distribution-month-summary',
//     method: 'get',
//     params
//   });
// };


//查询柱状和饼状图数据
export const getShapeData = (params) => {
  return request({
    url: '/api/mes-product/stat-storage-age-wip/chart',
    method: 'get',
    params
  });
};
